<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/1/7
 * Time: 18:25
 */

namespace common\sources\read\regcode;

use common\models\craftsman\RegCode;

class RegCodeAccess implements IRegCodeAccess
{
    public function getRegCode($reg_code_value)
    {
        return RegCode::find()
                ->select("config_value")
                ->where(['config_key' => $reg_code_value])
                ->asArray()
                ->one();
        // TODO: Implement getRegCode() method.
    }
}